<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditCustomerorderBookTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditCustomerorderBookLabel_customerorderBookPK_bookid}" for="customerorderBookPK_bookid" />
                    <h:inputText id="customerorderBookPK_bookid" value="#{customerorderBookController.selected.customerorderBookPK.bookid}" title="#{bundle.EditCustomerorderBookTitle_customerorderBookPK_bookid}" required="true" requiredMessage="#{bundle.EditCustomerorderBookRequiredMessage_customerorderBookPK_bookid}"/>
                    <h:outputLabel value="#{bundle.EditCustomerorderBookLabel_customerorderBookPK_customerOrderid}" for="customerorderBookPK_customerOrderid" />
                    <h:inputText id="customerorderBookPK_customerOrderid" value="#{customerorderBookController.selected.customerorderBookPK.customerOrderid}" title="#{bundle.EditCustomerorderBookTitle_customerorderBookPK_customerOrderid}" required="true" requiredMessage="#{bundle.EditCustomerorderBookRequiredMessage_customerorderBookPK_customerOrderid}"/>
                    <h:outputLabel value="#{bundle.EditCustomerorderBookLabel_quantity}" for="quantity" />
                    <h:inputText id="quantity" value="#{customerorderBookController.selected.quantity}" title="#{bundle.EditCustomerorderBookTitle_quantity}" required="true" requiredMessage="#{bundle.EditCustomerorderBookRequiredMessage_quantity}"/>
                    <h:outputLabel value="#{bundle.EditCustomerorderBookLabel_customerorder}" for="customerorder" />
                    <h:selectOneMenu id="customerorder" value="#{customerorderBookController.selected.customerorder}" title="#{bundle.EditCustomerorderBookTitle_customerorder}" required="true" requiredMessage="#{bundle.EditCustomerorderBookRequiredMessage_customerorder}">
                        <f:selectItems value="#{customerorderController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditCustomerorderBookLabel_book}" for="book" />
                    <h:selectOneMenu id="book" value="#{customerorderBookController.selected.book}" title="#{bundle.EditCustomerorderBookTitle_book}" required="true" requiredMessage="#{bundle.EditCustomerorderBookRequiredMessage_book}">
                        <f:selectItems value="#{bookController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{customerorderBookController.update}" value="#{bundle.EditCustomerorderBookSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditCustomerorderBookViewLink}"/>
                <br />
                <h:commandLink action="#{customerorderBookController.prepareList}" value="#{bundle.EditCustomerorderBookShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/admin/admin.xhtml" value="#{bundle.EditCustomerorderBookIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
